package org.example;

import redis.clients.jedis.DefaultJedisClientConfig;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.UnifiedJedis;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < 1000000; i++) {
            stringBuilder.append("010-59357051\n" +
                    "        本站所收录的作品、社区话题、用户评论、用户上传内容或图片等均属用户个人行为。如前述内容侵害您的权益，欢迎举报投诉，一经核实，立即删除，本站不承担任何责任\n" +
                    "        联系方式 总机 021-61870500 地址：中国（上海）自由贸易试验区环科路999弄1号706室");
        }

        System.out.println(stringBuilder.length());


        HostAndPort hostAndPort = new HostAndPort("10.211.55.10", 6379);
        UnifiedJedis jedis = new UnifiedJedis(hostAndPort, DefaultJedisClientConfig.builder().password("123456").build());

            jedis.set("hello10", stringBuilder.toString());
            jedis.close();





        // Code that interacts with Redis...


    }
}
